spinner: Use get_content_size
authorTimm Bäder <mail@baedert.org>
Sun, 18 Jun 2017 10:29:49 +0000 (12:29 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:14 +0000 (21:27 -0400)
gtk/gtkspinner.c

index d5f1f2a95abc2f774ac619feaafda53e4e72baf8..12c98aa39cf1a9020faeb0df4d9475a2953b6866 100644 (file)
@@ -115,13 +115,13 @@ gtk_spinner_snapshot (GtkWidget   *widget,
                       GtkSnapshot *snapshot)
 {
   GtkCssStyle *style = gtk_css_node_get_style (gtk_widget_get_css_node (widget));
-  GtkAllocation content_allocation;
+  int width, height;
 
-  gtk_widget_get_content_allocation (widget, &content_allocation);
+  gtk_widget_get_content_size (widget, &width, &height);
 
   gtk_css_style_snapshot_icon (style,
                                snapshot,
-                               content_allocation.width, content_allocation.height,
+                               width, height,
                                GTK_CSS_IMAGE_BUILTIN_SPINNER);
 }